package top.lishuoboy.logback.a3setting;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * @author ：lishuoboy
 * @date ：Created in 2021-1-3 11:00
 * @description：
 * @modified By：
 * @version: $
 */
public class ScanPeriodTest {
    private static final Logger log = LoggerFactory.getLogger(ScanPeriodTest.class);
    
    // 测试时，切记修改target目录下的logback-test.xml的才管用
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 100; i++) {
            log.info("hello {}", i);
            TimeUnit.SECONDS.sleep(1);
        }
        
    }
}
